<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>flexgrow属性</title>
  <style>
    .d {
      width: 100%;
      height: 200px;
      background-color: orange;
      display: flex;
    }
    .d1,.d2,.d3 {
      width: 200px;
      height: 100px;
      background-color: lightblue;
      margin-right: 5px;
      margin-bottom: 5px;
    }
    .d1,.d3 {
      /*flex-grow: 指定盒子放大的比例，默认值为0*/
      flex-grow: 1;
    }
    .d2 {
      flex-grow: 3;
    }
  </style>
</head>
<body>
<div class="d">
  <div class="d1">d1</div>
  <div class="d2">d2</div>
  <div class="d3">d3</div>
</div>
</body>
</html>
